package com.cgtong.android.mvp.model;

import com.cgtong.android.bean.ActivityBean;
import com.cgtong.android.http.ApiManager;
import com.cgtong.android.mvp.contract.MyParticipationContract;
import com.zhouyou.http.EasyHttp;
import com.zhouyou.http.callback.CallBackProxy;
import com.zhouyou.http.callback.SimpleCallBack;
import com.zhouyou.http.model.ApiResult;

import java.util.List;

/**
 * Created by Sky.Bing on 2017/10/25.
 */

public class MyParticipationModel implements MyParticipationContract.Model {
    @Override
    public void getMyParticipation(int maxId, int pageSize, SimpleCallBack callBack) {
        EasyHttp.post(ApiManager.URL_GET_MYPART_ACTIVITY)
                .params("maxId", String.valueOf(maxId))
                .params("pageSize", String.valueOf(pageSize))
                .accessToken(true)
                .execute(new CallBackProxy<ApiResult<List<List<ActivityBean>>>, List<List<ActivityBean>>>(callBack) {
                });
    }
}